package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeacherManageMapper;
import com.ruoyi.system.domain.TeacherManage;
import com.ruoyi.system.service.ITeacherManageService;

/**
 * 教师一览Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-05
 */
@Service
public class TeacherManageServiceImpl implements ITeacherManageService 
{
    @Autowired
    private TeacherManageMapper teacherManageMapper;

    /**
     * 查询教师一览
     * 
     * @param teacherId 教师一览主键
     * @return 教师一览
     */
    @Override
    public TeacherManage selectTeacherManageByTeacherId(Long teacherId)
    {
        return teacherManageMapper.selectTeacherManageByTeacherId(teacherId);
    }

    /**
     * 查询教师一览列表
     * 
     * @param teacherManage 教师一览
     * @return 教师一览
     */
    @Override
    public List<TeacherManage> selectTeacherManageList(TeacherManage teacherManage)
    {
        return teacherManageMapper.selectTeacherManageList(teacherManage);
    }

    /**
     * 新增教师一览
     * 
     * @param teacherManage 教师一览
     * @return 结果
     */
    @Override
    public int insertTeacherManage(TeacherManage teacherManage)
    {
        return teacherManageMapper.insertTeacherManage(teacherManage);
    }

    /**
     * 修改教师一览
     * 
     * @param teacherManage 教师一览
     * @return 结果
     */
    @Override
    public int updateTeacherManage(TeacherManage teacherManage)
    {
        return teacherManageMapper.updateTeacherManage(teacherManage);
    }

    /**
     * 批量删除教师一览
     * 
     * @param teacherIds 需要删除的教师一览主键
     * @return 结果
     */
    @Override
    public int deleteTeacherManageByTeacherIds(Long[] teacherIds)
    {
        return teacherManageMapper.deleteTeacherManageByTeacherIds(teacherIds);
    }

    /**
     * 删除教师一览信息
     * 
     * @param teacherId 教师一览主键
     * @return 结果
     */
    @Override
    public int deleteTeacherManageByTeacherId(Long teacherId)
    {
        return teacherManageMapper.deleteTeacherManageByTeacherId(teacherId);
    }
}
